package com.ysz.timewheel;

import com.ysz.timewheel.client.conn.ClientConnect;

/**
 * @ClassName ServerStarter
 * @Description TODO
 * @Data 19:07
 * @Version 1.0
 * @Author ysz
 */
public class Starter {

    /**
     * 定义模拟失效节点的数组(这些节点需要探活节点发送通知)
     */
    public static String[] deactivationNode = new String[]{"C-1", "B-1", "C-2"};
    /**
     * 定义模拟客户端节点的数组
     */
    public static String[] clientsNode = new String[]{"H-1", "D-1", "A-1", "C-1", "B-1", "C-2",
            "E-2", "H-2", "D-2", "A-2", "C-4", "B-19"};


    public static void main(String[] args) {
        //启动时间轮
        TimeWheel timeWheel = new TimeWheel();
        timeWheel.start();
        //启动测试
        ClientConnect clientConnect = new ClientConnect();
        clientConnect.start();
    }
}
